package com.smmisia.wx;

public class LotteryDemo {
    public static void main(String[] args) {
        LotterySystem lottery = new LotterySystem();

        // 设置定轨奖品
        LotterySystem.Prize targetPrize = new LotterySystem.Prize(1L, "手机", LotterySystem.PrizeType.PHYSICAL, 2000);
        lottery.setTargetPrize(targetPrize);

        // 模拟抽奖
        for (int i = 0; i < 100; i++) {
            LotterySystem.Prize result = lottery.draw();
            System.out.println("第" + (i+1) + "次抽奖: " + result.getName());
        }
    }
}